package watcher;

/**
 * 具体的目标对象，负责把有关状态存入相应的观察者
 * Created by zzy on 2018/1/1.
 */
public class ConcreteSubject extends Subject {

    /**
     * 目标对象的状态
     */
    private String subjectState;

    public String getSubjectState() {
        return subjectState;
    }

    public void setSubjectState(String subjectState) {
        this.subjectState = subjectState;
        super.notifyObservers();
    }
}
